
{% extends "base.html" %}
{% block styles %}
    {{ super() }}
   <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f0f0f0;
        }
        form {
            width: 500px;
            margin: 50px auto;
            padding: 20px;
            background-color: #ffffff;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        input[type="text"], input[type="file"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ccc;
            border-radius: 3px;
        }
        input[type="submit"] {
            width: 100%;
            padding: 10px;
            background-color: #007bff;
            color: #ffffff;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }
        input[type="submit"]:hover {
            background-color: #0056b3;
        }
    </style>
{% endblock %}


{% block container %}
<form action="{{url_for('product.pro_add')}}" method="post" enctype="multipart/form-data">
    <p>商品添加</p>
    <p><input type="text" placeholder="请输入商品编号" name="pid"></p>
    <p><input type="text" placeholder="请输入商品名称" name="pname"></p>
    <p><input type="text" placeholder="请输入价格" name="price"></p>
    <p><input type="text" placeholder="请输入库存" name="pnum"></p>
    <p><input type="text" placeholder="请输入商品类型" name="ptype"></p>
    <p><input type="file" name="pimage"></p>
    <p><input type="submit" value="商品添加"></p>
</form>
{% endblock %}
